package com.example.mylogin.entity;

import lombok.Data;

import java.util.function.Consumer;

/**
 * <p>
 * 功能描述：
 * </p>
 *
 * @author cui haida
 * @date 2025/06/08/9:18
 */
@Data
public class Employee {


    private String name;

    private Consumer<String> consumer;

    /**
     * 消费消息
     * @param info 消息
     */
    public void consumerInfo(String info) {
        consumer.accept(info);
    }
}
